<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		//p71
		<script type="text/javascript">
			var obj1 = new Object("abc123");
			console.log(obj1);
			console.log(obj1.constructor);
			
			var stu2 = {
				id:2,
				name:"ww",
				age:"19"
			}
			
		console.log(stu2);
		console.log(stu2.constructor);
		
		function array_max()
		{
			var max =this[0];
			for(var i=1;i<this.length;i++)
			{
				if(max<this[1])
				{
					max =this[1];
				}
			}
			return max;
		}
			
			Array.Prototype.max=Array_max;
			var nums =new Array(1,5,100,25,80);
			console.log(nums.max());
		</script>
	</body>
</html>
